package cn.com.netedge.iot.common.constants;

public interface CacheKeyConstants {
    String KEY_DATA_POWER_CUMULATIVE_READING = "data_power_cumulative_reading";

    /** 前置通信 **/
    String  KEY_CHANNEL = "channel:"; //通道缓存 + channelId
    String KEY_DEVICE_RUNNING = "device_running:"; //设备运行状态缓存 + deviceNumber
    String KEY_DEVICE_NOT_EXISTS = "device_not_exists:"; //设备档案不存在 + deviceNumber
    String KEY_DEVICE_MESSAGE_COUNT = "device_message_count:"; //设备消息计数 + deviceNumber + lastMinute
    String KEY_DEVICE_FREEZE_FLAG = "device_freeze_flag:"; //设备冻结标志 + deviceNumber
    String KEY_DEVICE_INFO = "device_info:"; //设备运行信息 + channelId
    String KEY_DEVICE_TASK = "device_task:"; //设备任务缓存 + deviceNumber + deviceType
    String KEY_DEVICE_CMD = "device_cmd:"; //设备命令ID缓存 + deviceNumber + 16位时间戳 + 6位随机数
    String KEY_DEVICE_QUEUE = "device_queue:"; //设备队列缓存 + deviceNumber + deviceType
    String KEY_DEVICE_TASK_RESULT = "device_task_result"; //设备任务结果缓存, 用于发布订阅

    String KEY_GLOABL_MACHINE_NO = "gloabl_machine_no"; //全局机器序号，自增
    String KEY_FRONTEND_COMM_MACHINE = "frontend_comm_machine:";
    String KEY_FRONTEND_BIZ_MACHINE = "frontend_biz_machine:";
    String KEY_FRONTEND_DATA_SAVE_MACHINE = "frontend_data_save_machine:";

    String KEY_TABLE_COLUMNS = "table_columns:"; //表字段缓存 + tableName

    /*任务通知通道*/
     String TIME_TASK_CHANNEL_NAME = "TimeTaskChannel";
    /*采集任务通知*/
     String COLLECT_TASK_CHANNEL_NAME = "CollectTaskChannel";
    /*参数设置任务通知*/
     String PARA_SETUP_TASK_CHANNEL_NAME = "ParaSetUpTaskChannel";
    /*设备升级任务执行*/
     String UPGRADE_TASK_CHANNEL_NAME = "UpgradeSetUpTaskChannel";

}
